/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.servitware.cr.crdoc.view.adapter;

import com.servitware.cardio.domain.transport.SolicitudTx;
import com.servitware.util.TimeUtil;
import java.util.List;

/**
 *
 * @author erik
 */
public class SolicitudTableAdapter
{
    private final int FIELDS = 5;
    private Object[][] data = null;
    
    public SolicitudTableAdapter(List<SolicitudTx> list)
    {
        data = new Object[list.size()][ FIELDS ];
        int i = 0;

        for (SolicitudTx s : list)
        {
            data[i][0] = new Integer(s.getId() );
            data[i][1] = s.getCentro();
            data[i][2] = s.getClienteTx().getNombre();
            //data[i][3] = s.getVendedor();
            //data[i++][4] = Time.getTimeLapse( s.getSesionTx().getHoraInicio(), s.getSesionTx().getHoraParada() );
        }
    }

    public Object[][] getSolicitudesArray()
    {
        return data;
    }


}
